package chain;

import chain.service.CustomChain;
import chain.service.FiduciaryChain;

public class GroupChain {

	private Chain fiduciaryChain;
	private Chain customChain;
	
	public GroupChain() {
		//组装责任链
		fiduciaryChain = new FiduciaryChain();
		customChain = new CustomChain();
		fiduciaryChain.setNextChain(customChain);
	}
	
	/**
	 * 开始流程
	 * @param value
	 */
	public void start(int value) {
		fiduciaryChain.handlerMessage(value);
	}
	
}
